﻿<div class="page-header navbar navbar-fixed-top">
  <!-- BEGIN HEADER INNER -->
  <div class="page-header-inner ">
    <!-- BEGIN LOGO -->
    <div class="page-logo">
     
      <span style="color:#ffffff;font-size:15px; font-weight:300; line-height:50px; margin-left:10px;">内容管理系统</span>
      <!--<div class="menu-toggler sidebar-toggler">
                        <span></span>
                    </div>-->
    </div>
    <!-- END LOGO -->
    <!-- BEGIN RESPONSIVE MENU TOGGLER -->
    <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
      <span></span>
    </a>
    <!-- END RESPONSIVE MENU TOGGLER -->
    <!-- BEGIN TOP NAVIGATION MENU -->
    <div class="top-menu">
      <ul class="nav navbar-nav pull-right">
        <!-- BEGIN USER LOGIN DROPDOWN -->

		  <li class="dropdown dropdown-user hide">
			  <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
				  <span class="username username-hide-on-mobile">
					  <i class="fa fa-rocket"></i> 快捷入口
				  </span>
				  <i class="fa fa-angle-down"></i>
			  </a>
			  <ul class="dropdown-menu dropdown-menu-default">
				  <li>
					  <a href="JavaScript:;">
						  <i class="fa fa-chain"></i> 示例
					  </a>
				  </li>
			  </ul>
		  </li>

        <% if (GlobalConfigModel.Dev)
                        { %>
        <li class="dropdown dropdown-user " style="cursor:default; background-color:none;">
          <a href="JavaScript:GenerateUrl();" class="dropdown-toggle" style="cursor: default;">
            <span class="username username-hide-on-mobile " style="cursor: default;">
              <i class="fa fa-refresh"></i>&nbsp;<span class="" style="display:inline-block; ">生成链接</span>&nbsp;&nbsp;&nbsp;
            </span>
          </a>
        </li>
        <%} %>

        <li class="dropdown dropdown-user " style="cursor:default; background-color:none;">
          <a href="/Admin/Page_Channel/List.aspx?t=Channel" class="dropdown-toggle" style="cursor: default;">
            <span class="username username-hide-on-mobile " style="cursor: default;">
              <i class="fa fa-list"></i>&nbsp;<span class="" style="display:inline-block; ">栏目列表</span>&nbsp;&nbsp;&nbsp;
            </span>
          </a>
        </li>
        
        <li class="dropdown dropdown-user " style="cursor:default; background-color:none;">
          <a href="javascript:;" class="dropdown-toggle" style="cursor: default;">
            <span class="username username-hide-on-mobile " style="cursor: default;">
              <i class="icon-clock"></i>&nbsp;<span class="curtime" style="display:inline-block; width:140px">---------- --:--:--</span>&nbsp;&nbsp;&nbsp;
            </span>
          </a>
        </li>
        
        <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
          <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false">
            <i class="icon-bell"></i>
            <% if (SystemNotice.Count>0){ %>
              <span class="badge badge-danger top-bar-badge-num"> <%=SystemNotice.Count%> </span>
            <%} %>
            
          </a>
          <ul class="dropdown-menu">
            <li class="external">
              <% if (SystemNotice.Count>0){ %>
                <h3><span class="bold"><%=SystemNotice.Count%></span> 条通知 , 请尽快处理</h3>
              <%}else{ %>
                <h3>您没有新的通知</h3>
              <%}%>
            </li>
            <li>
              <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; max-height: 250px;">
                <ul class="dropdown-menu-list scroller" style="max-height: 250px; overflow: auto; width: auto; overflow-x:hidden" data-handle-color="#637283" data-initialized="1">

                  <% foreach (Evan.Model.SysModel.SystemNotice item in SystemNotice) { %>
                  <li class="top-bar-badge-list">
                    <% if(item.ActionType.ToLower()=="js"){ %>
                            <a href="javascript:;" onclick="<%=item.Action %>">
                    <%}else if(item.ActionType.ToLower()=="link"){ %>
                      <a href="<%=item.Action %>" >
                        <%} %>
                              <span class="details" style="font-weight:500">
                          <span class="label label-sm label-icon label-success hide"></span>
                          <%=item.Title %>
                        </span>
                      </a>
                    </li>
                  <% } %>

                </ul>
              </div>
            </li>
          </ul>
        </li>
        
        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
        
        
        <li class="dropdown dropdown-user">
          <a href="/" target="_blank" class="dropdown-toggle">
            <span class="username username-hide-on-mobile">
              <i class="icon-screen-desktop"></i>&nbsp;浏览首页&nbsp;&nbsp;&nbsp;
            </span>
          </a>
        </li>

        <li class="dropdown dropdown-user">
          <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
            <span class="username username-hide-on-mobile">
              <i class="icon-user"></i> <%= CurAdmin.Name %>
            </span>
            <i class="fa fa-angle-down"></i>
          </a>
          <ul class="dropdown-menu dropdown-menu-default">
            <!--<li>
                                    <a href="page_user_profile_1.html">
                                        <i class="icon-user"></i> My Profile </a>
                                </li>
                                <li>
                                    <a href="app_calendar.html">
                                        <i class="icon-calendar"></i> My Calendar </a>
                                </li>
                                <li>
                                    <a href="app_inbox.html">
                                        <i class="icon-envelope-open"></i> My Inbox
                                        <span class="badge badge-danger"> 3 </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="app_todo.html">
                                        <i class="icon-rocket"></i> My Tasks
                                        <span class="badge badge-success"> 7 </span>
                                    </a>
                                </li>
                                <li class="divider"> </li>
                                <li>
                                    <a href="<%=SiteConfig.WebAdminPath %>lock.aspx">
                                        <i class="icon-lock"></i> 锁定账户 </a>
                                </li>-->
            <li class="">
              <a href="#resetpwd-modal" class="layer-reset-pwd"  data-toggle="modal" >
                <i class="icon-key"></i> 修改密码
              </a>
            </li>
            <li class="">
              <a href="<%=SiteConfig.WebAdminPath %>ashx/ajax.ashx?action=memexlog" target="_blank" class="output-debug-log"  >
                <i class="fa fa-bug"></i> 导出调试日志
              </a>
            </li>
            <li class="">
              <a href="javascript:;"  class="restartsite"  >
                <i class="icon-refresh"></i> 重启网站
              </a>
            </li>
            <!--<li class="">
              <a href="javascript:;" target="_blank" class="loaddbschema"  >
                <i class="icon-layers"></i> 重载数据结构
              </a>
            </li>-->
            <!--<li class="">
              <a href="javascript:;"  class="deleteautosave"  >
                <i class="icon-trash"></i> 删除本页自动保存数据
              </a>
            </li>-->
            <li>
              <a href="<%=SiteConfig.WebAdminPath %>login.aspx?action=loginout">
                <i class="icon-logout"></i> 安全退出
              </a>
            </li>
          </ul>
        </li>

        <!-- END USER LOGIN DROPDOWN -->

      </ul>
    </div>
    <!-- END TOP NAVIGATION MENU -->
  </div>
  <!-- END HEADER INNER -->
</div>



<div id="resetpwd-modal" class="modal fade" tabindex="-1" aria-hidden="true" style="display: none;">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title">修改登录密码 </h4>
        <span class="text-primary">密码修改成功后系统会跳转至登录页面重新登录</span>
      </div>
      <div class="modal-body">
        <div class="row">
          <div class="form">
            <div class="form-horizontal form-row-seperated">
              <div class="form-body">

                <div class="form-group  ">
                  <label class="control-label col-md-3">旧密码</label>
                  <div class="col-md-7">
                    <input type="password" class="form-control maxlength_defaultconfig layer_old_pwd" maxlength="20"  placeholder="请输入旧密码"  value=""/>
                    <span class="help-block">您必须输入您的旧密码 , 如忘记 , 请联系超级管理员 </span>
                  </div>
                </div>

                <div class="form-group  ">
                  <label class="control-label col-md-3">新密码</label>
                  <div class="col-md-7">
                    <input type="password" class="form-control maxlength_defaultconfig layer_new_pwd" maxlength="20"  placeholder="请输入新密码"  value=""/>
                    <span class="help-block">8-20位，同时包含大小字母、数字和特殊符号</span>
                  </div>
                </div>

                <div class="form-group  " style="border-bottom:none;">
                  <label class="control-label col-md-3">重复密码</label>
                  <div class="col-md-7">
                    <input type="password" class="form-control maxlength_defaultconfig layer_re_new_pwd" maxlength="20"  placeholder="请再次输入新密码"  value=""/>
                    <span class="help-block">重复新密码</span>
                  </div>
                </div>
                
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn green resetpwd-submit">提交修改</button>
        <button type="button" data-dismiss="modal" class="btn btn-outline">取消</button>
      </div>
    </div>
  </div>
</div>